Skip to content

fix(web): route anonymous "Start a Project" CTA to login#128

Merged
themightychris merged 4 commits into
mainfrom
fix/home-start-project-cta
Jun 25, 2026
Merged

fix(web): route anonymous "Start a Project" CTA to login#128
themightychris merged 4 commits into
mainfrom
fix/home-start-project-cta

Conversation

@themightychris

Copy link
Copy Markdown
Member

Why

Leadership-team feedback (#0-leadership-team, June 2026, with mobile screenshots from Kat & Travis): the home page's "Start a Project" card lands on a dead pagecodeforphilly.gitbook.io/.../first-steps now returns "Content owner not found."

The reported "works on laptop, not phone" symptom was a red herring — it's logged-in vs logged-out, not responsive. The get-involved card branched on person: signed-in users got the in-app /projects/create form, but anonymous users were sent to the legacy GitBook URL.

What

Spec-first fix (per specops — the spec was wrong, so it leads):

  • specs/screens/home.md — the Get-involved card and Authorization tables prescribed the GitBook URL for the anonymous case. Now: anonymous → /login?return=/projects/create, matching the Volunteer screen's existing convention (volunteer.md:52).
  • apps/web/src/screens/Home.tsx — anonymous branch → /login?return=/projects/create. Both branches are in-app routes now, so the external-link target="_blank"/rel props drop away.
  • apps/web/tests/Home.test.tsx — new test asserts the anonymous card's href. The original regression had no coverage.

Validation

  • npm run type-check && npm run lint && npm test clean (web 74/74, shared 75/75).
  • Browser-verified: logged-out home → "Start a Project" → /login?return=/projects/create renders the real sign-in page, and the GitHub link carries return=%2Fprojects%2Fcreate (returns to the create form after auth). No GitBook URL remains.

Plan: plans/home-start-project-cta.md.

🤖 Generated with Claude Code

themightychris and others added 4 commits June 25, 2026 06:17
`specops hook install` (project scope) writes a SessionStart hook to
.claude/settings.json that runs the bundled specops dashboard at the start
of every session in this repo — so an agent sees what's ready / in-progress
/ blocked from turn 1. Resolves via the .claude/skills/specops symlink, so
it tracks whatever version skills-lock.json pins.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Logged-out "Start a Project" CTA on the home page lands on a dead GitBook
page ("Content owner not found") — reported by leadership team with mobile
screenshots. Spec-first fix: home.md prescribed the GitBook URL for anon.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The home page get-involved card branched on auth state: signed-in users got
the in-app /projects/create form, but anonymous users were sent to
codeforphilly.gitbook.io/.../first-steps — which now returns "Content owner
not found". The reported "works on laptop, not phone" symptom was actually
logged-in vs logged-out, not responsive.

Spec led: specs/screens/home.md prescribed the GitBook URL for the anon
case, so the spec was wrong and is fixed first. Anonymous now routes through
/login?return=/projects/create, matching the Volunteer screen's existing
convention. Both branches are in-app routes now, so the external-link
target/rel props drop away. Added a Home test asserting the anon card's
href — the regression had no coverage before.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant